import consola from 'consola';
import colors from 'colors';

/**
 * 终端打印日志
 * @return {*}
 */
export default {
    start: (v: string | Error) => {
        consola.start(v);
    },
    err: (v: string | Error) => {
        consola.error(v);
    },
    info: (v: string) => {
        consola.info(colors.yellow(v));
    },
    success: (v: string) => {
        consola.success(v);
    }
};
